package com.game.game.logic.frame;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AutoLogicFrameConfiguration {

	@Autowired
	private ApplicationContext appContext;
	
	@Bean
	public GatewayMessageReceiveService receiveService() {
		return new GatewayMessageReceiveService();
	}
	@Bean
	public GameRequestHandlerContext gameRequestHandlerContext() {
		return new GameRequestHandlerContext(appContext);
	}
	
	@Bean
	public ServerConfig serverConfig() {
		return new ServerConfig();
	}
	
}
